package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/6/13
 */
    
@Data
@TableName(value = "t_goods_comment")
public class GoodsComment {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 评价编号
     */
    @TableField(value = "comment_no")
    private String commentNo;

    /**
     * 自动生成 AUTO_GENERATED,
用户自评 USER_REVIEWED;
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品规格名称
     */
    @TableField(value = "goods_specs")
    private String goodsSpecs;

    /**
     * 商品评价星级 1-5
     */
    @TableField(value = "product_review")
    private Integer productReview;

    /**
     * 物流速度评价星级 1-5
     */
    @TableField(value = "logistics_speed")
    private Integer logisticsSpeed;

    /**
     * 产品包装评价星级 1-5
     */
    @TableField(value = "product_packaging")
    private Integer productPackaging;

    /**
     * 使用体验评价星际 1-5
     */
    @TableField(value = "user_experience")
    private Integer userExperience;

    /**
     * 标签集合[]
     */
    @TableField(value = "tag")
    private String tag;

    /**
     * 评价内容
     */
    @TableField(value = "comment_content")
    private String commentContent;

    /**
     * 评价图片
     */
    @TableField(value = "comment_images")
    private String commentImages;

    /**
     * ai给出的评价
     */
    @TableField(value = "ai_tag")
    private String aiTag;

    /**
     * 是否置顶 0否 1是
     */
    @TableField(value = "is_pinned")
    private Integer isPinned;

    /**
     * 审核状态
     */
    @TableField(value = "audit_status")
    private String auditStatus;

    /**
     * 是否展示 0否 1是
     */
    @TableField(value = "is_visible")
    private Integer isVisible;

    /**
     * 回复人关联id
     */
    @TableField(value = "reply_user_id")
    private Long replyUserId;

    /**
     * 回复类型
     */
    @TableField(value = "reply_type")
    private String replyType;

    /**
     * 回复评价
     */
    @TableField(value = "comment_reply")
    private String commentReply;

    /**
     * 审核时间
     */
    @TableField(value = "audit_time")
    private LocalDateTime auditTime;

    /**
     * 审核人id
     */
    @TableField(value = "emp_id")
    private Long empId;

    /**
     * 审核人手机号
     */
    @TableField(value = "emp_phone")
    private String empPhone;

    /**
     * 购买时间
     */
    @TableField(value = "buy_time")
    private LocalDateTime buyTime;

    /**
     * 是否回访 1是 0否
     */
    @TableField(value = "is_visited")
    private Integer isVisited;

    /**
     * 版本
     */
    @TableField(value = "version")
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}